/** 
 * Cell.java
 * @author Lex
 * 2007-8-21 ����06:12:28
 */
package nibbles.lex;

/**
 * ��Point���������ƣ�����û��Point��Щ���ӵķ���
 */
public class Cell {
	public int x = 0;
	public int y = 0;

	public Cell() {
	}

	public Cell(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public boolean equals(Object o) {
		if (null == o)
			return false;
		if (this == o)
			return true;
		if (false == o instanceof Cell)
			return false;
		Cell oc = (Cell) o;
		return this.x == oc.x && this.y == oc.y;
	}

	public Cell clone() {
		return new Cell(x, y);
	}
}
